package grape.house.rest.buildingroom.mapper;

import grape.house.rest.buildingroom.form.BuildingRoomListForm;
import grape.house.service.buildingroom.po.BuildingRoom;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.house.rest.buildingroom.form.BuildingRoomCreateForm;
import grape.house.rest.buildingroom.form.BuildingRoomUpdateForm;
import grape.house.rest.buildingroom.form.BuildingRoomListPageForm;
import grape.house.rest.buildingroom.vo.BuildingRoomVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 房屋表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface BuildingRoomWebMapper extends WebMapper<BuildingRoomVo, BuildingRoom> {

    BuildingRoom formToPo(BuildingRoomCreateForm f);
    BuildingRoom formToPo(BuildingRoomUpdateForm f);
    BuildingRoom formToPo(BuildingRoomListPageForm f);
    BuildingRoom formToPo(BuildingRoomListForm f);
}
